﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SecuredSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BigLotterySyndicate.Secured.Default" %>
<%@ Register TagPrefix="Syndicate" TagName="DrawListItem" Src="~/Secured/Controls/DrawListItem.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="breadcrumb">
<a href="/Secured/Default.aspx?Ns=0">Home</a> /  <b> Syndicate statistics</b>
</div>
<div class="content-wrapper">
<p>Players registered: <b><%= PrintTotalPlayers() %></b></p>
<p>Draws played: <b><%= PrintTotalDrawsPlayed() %></b></p>
<p>Draws in play:</p>
<asp:MultiView ID="MultiViewDrawsInPlay" runat="server">
<asp:View ID="ViewDrawsInPlayList" runat="server">
    <table cellpadding="2" cellspacing="2" class="draws-table">
    <tr style="border-bottom:1px solid black;">
    <th class="left">Type</th>
    <th class="left">Date</th>
    <th class="left">Players</th>
    <th class="left">Lines</th>
    <th class="left">Status</th>
    <th class="left">&nbsp;</th>
    <th class="left">Money spent</th>
    <th class="left">Money won</th>
    </tr>
    <asp:Repeater ID="RepeaterDrawsInPlay" runat="server">
    <ItemTemplate>
    <Syndicate:DrawListItem ID="DrawListItem" runat="server" />    
    </ItemTemplate>
    </asp:Repeater>
    </table>
</asp:View>
<asp:View ID="ViewDrawsInPlayEmpty" runat="server">
<p>No draws in play.</p>
</asp:View>
</asp:MultiView>

<p>Money spent: <b><%= PrintMoneySpend() %></b></p>
<p>Money in play: <b><%= PrintMoneyInPlay() %> </b></p>
<p>Money won: <b><%= PrintMoneyWon() %></b> </p>
<p>Money available: <b><%= PrintMoneyAvailable() %></b> </p>
<asp:PlaceHolder ID="PlaceHolderPasswordResets" runat="server" Visible="false">
<p>User(s) that require attention:</p>
<ul>
<asp:Repeater ID="RepeaterPasswords" runat="server">
<ItemTemplate>
<li>
<%# PrintUserName(Container.DataItem) %> - <%# PrintUserTempPassword(Container.DataItem)%>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>

</asp:PlaceHolder>
<asp:PlaceHolder ID="PlaceHolderActions" runat="server">
<p>Actions:</p>
<asp:Button ID="ButtonCheckResults" runat="server" Text="Check Results" 
        onclick="ButtonCheckResults_Click" />
        <asp:Button ID="ButtonUpdateDraws" runat="server" Text="Update draws" 
        onclick="ButtonUpdateDraws_Click" />
        </asp:PlaceHolder>
</div>
<div class="content-wrapper-right">
<img src="../Assets/Images/lotto_badge.png" />
<img src="../Assets/Images/euro_badge.png" />
<img src="../Assets/Images/health_badge.png" />
</div>
</asp:Content>
